<div data-ng-app="myApp" mt-layout="{ spacing_open: 0 }" style="width: 100%; height: 100%;">

<div class="ui-layout-center">
    <!-- Nav tabs -->
    <ul class="nav nav-tabs hidden" role="tablist">
        <li role="presentation" class="active"><a href="#loglist" aria-controls="loglist" role="tab" data-toggle="tab">日志列表</a></li>
    </ul>

    <!-- Tab panes -->
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane fade active in" id="loglist" mt-layout="{ spacing_open:0 }" ng-controller="myLogController">
            <div class="ui-layout-north">
                <ol class="breadcrumb">
                    <li>系统管理</li>
                    <li><a href="../../settings/log">系统日志管理</a></li>
                    <li class="active">日志列表</li>
                </ol>
            </div>
            <div class="ui-layout-center" mt-url="tmpl/loglist.html"></div>
            <div class="ui-layout-south">
                <button class="btn btn-primary" data-toggle="modal" data-target="#myModal" mt-tab>清空日志</button>
            </div>
        </div>
    </div>

</div>

</div>

<!-- Modal1 -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModal" ng-controller="deleteLogController">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">温馨提示：</h4>
            </div>
            <div class="modal-body">
                您确定要清空日志吗?
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal" data-toggle="modal" data-target="#removedlog" ng-click="ok()">删除</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<!-- Modal2 -->
<div class="modal fade" id="removedlog" tabindex="-1" role="dialog" aria-labelledby="removedlog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel1">温馨提示：</h4>
            </div>
            <div class="modal-body">
                日志已清空。
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
            </div>
        </div>
    </div>
</div>
